package cn.kdyzm.component.xxljob.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author kdyzm
 * @date 2021/4/13
 */
@Data
@Component
@ConfigurationProperties(prefix= "xxl.job.executor")
public class XxlJobExecutor {

    /**
     * ### xxl-job executor appname
     */
    private String appname;

    /**
     * ### xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null
     */
    private String address;

    /**
     * ### xxl-job executor server-info
     */
    private String ip;
    private Integer port;

    /**
     * ### xxl-job executor log-path
     */
    private String logpath;

    /**
     * ### xxl-job executor log-retention-days
     */
    private Integer logretentiondays;
}
